package com.ys.entity.business;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_DataExecution", catalog="Id")
public class TpDataExecution extends BaseEntity<TpDataExecution> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="DayRun", nameJava="dayRun", typeDataBase="char")
	private String dayRun;
	@YsField(nameDataBase="PurchaseDayBegin", nameJava="purchaseDayBegin", typeDataBase="char")
	private String purchaseDayBegin;
	@YsField(nameDataBase="PurchaseDayEnd", nameJava="purchaseDayEnd", typeDataBase="char")
	private String purchaseDayEnd;
	@YsField(nameDataBase="LatestUpdateDayBegin", nameJava="latestUpdateDayBegin", typeDataBase="char")
	private String latestUpdateDayBegin;
	@YsField(nameDataBase="LatestUpdateDayEnd", nameJava="latestUpdateDayEnd", typeDataBase="char")
	private String latestUpdateDayEnd;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpDataExecution setId(Long id) {
		this.id = id;
		return this;
	}
	public String getDayRun() {
		return dayRun;
	}
	public TpDataExecution setDayRun(String dayRun) {
		this.dayRun = dayRun;
		return this;
	}
	public String getPurchaseDayBegin() {
		return purchaseDayBegin;
	}
	public TpDataExecution setPurchaseDayBegin(String purchaseDayBegin) {
		this.purchaseDayBegin = purchaseDayBegin;
		return this;
	}
	public String getPurchaseDayEnd() {
		return purchaseDayEnd;
	}
	public TpDataExecution setPurchaseDayEnd(String purchaseDayEnd) {
		this.purchaseDayEnd = purchaseDayEnd;
		return this;
	}
	public String getLatestUpdateDayBegin() {
		return latestUpdateDayBegin;
	}
	public TpDataExecution setLatestUpdateDayBegin(String latestUpdateDayBegin) {
		this.latestUpdateDayBegin = latestUpdateDayBegin;
		return this;
	}
	public String getLatestUpdateDayEnd() {
		return latestUpdateDayEnd;
	}
	public TpDataExecution setLatestUpdateDayEnd(String latestUpdateDayEnd) {
		this.latestUpdateDayEnd = latestUpdateDayEnd;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpDataExecution setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpDataExecution setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpDataExecution setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpDataExecution tpDataExecution(
		String dayRun,
		String purchaseDayBegin,
		String purchaseDayEnd,
		String latestUpdateDayBegin,
		String latestUpdateDayEnd,
		Integer status
			) {
		TpDataExecution entity = new TpDataExecution();
		entity.setDayRun(dayRun);
		entity.setPurchaseDayBegin(purchaseDayBegin);
		entity.setPurchaseDayEnd(purchaseDayEnd);
		entity.setLatestUpdateDayBegin(latestUpdateDayBegin);
		entity.setLatestUpdateDayEnd(latestUpdateDayEnd);
		entity.setStatus(status);
		return entity;
	}
}